package cn.zzdt4j.config.model.biz.item;

import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * The type Item save req dto.
 *
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 2023 /11/7 21:48
 */
@Data
public class ItemSaveReqDTO {

    /**
     * Tenant id
     */
    @Pattern(regexp = "^((?!\\+).)*$", message = "租户、项目、线程池 ID 包含+号")
    private String tenantId;

    /**
     * Item id
     */
    @Pattern(regexp = "^((?!\\+).)*$", message = "租户、项目、线程池 ID 包含+号")
    private String itemId;

    /**
     * Item name
     */
    private String itemName;

    /**
     * Item desc
     */
    private String itemDesc;

    /**
     * Owner
     */
    private String owner;
}
